package xyz.yolin.test;

import java.util.TreeSet;

public class test3 {
    public static void main(String[] args) {
        String str="2,4,8,6,2,1,4,9,4,8,5";
        sort(str);
    }
    public static  void sort(String str){
        String[] arr=str.split(",");
        TreeSet<String> tree=new TreeSet<>();
        for(String a:arr){
            tree.add(a);
        }
        System.out.println(tree);
    }
}
